package com.itump.base.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name = "FP_W_EXCEPTION")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Exceptional implements Serializable { 
	private static final long serialVersionUID = -4817573853257270947L;
	public Exceptional(){}
	@Id	 
	@Column(name = "UUID", nullable = false)
	private long uuid ;
	@Column(name = "ID", length = 36)
	private String id;//异常编号
	@Column(name = "CLAZZ_NAME", length = 200)
	private String clazzName;//异常的完整类名
	public long getUuid() {
		return uuid;
	}
	public void setUuid(long uuid) {
		this.uuid = uuid;
	}
	@Column(name = "TIP", length = 200)
	private String tip;//有好提示
	@Column(name = "TYP", length = 20)
	private String typ;//异常的类型
	@Column(name = "OCCUR_DATE")
	private Date occurDate;//异常发生的时间
	@Column(name = "USER_ID",length = 20)
	private String userId;//导致发生异常的用户
	@Column(name = "CONTENT",length = 1000)
	private String content;	//异常的具体内容
	 
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getClazzName() {
		return clazzName;
	}
	public void setClazzName(String clazzName) {
		this.clazzName = clazzName;
	}
	public String getTip() {
		return tip;
	}
	public void setTip(String tip) {
		this.tip = tip;
	}
	public String getTyp() {
		return typ;
	}
	public void setTyp(String typ) {
		this.typ = typ;
	}
	public Date getOccurDate() {
		return occurDate;
	}
	public void setOccurDate(Date occurDate) {
		this.occurDate = occurDate;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
}
